home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
ada
/
c01lab5.zip
/
SPACEMON
/
READ_SEN.ADA
< prev
next >
Wrap
Text File
|
1992-03-17
|
858b
|
33 lines
with Spacecraft_Sensor_Interface,Checker;
use Spacecraft_Sensor_Interface,Checker;
with Types; use Types;
with CRT_Output; use CRT_Output;
with Console; use Console;
procedure Read_Sensors is
Pressure : PRESSURE_ARRAY;
Radiation : RADIATION_ARRAY;
Temperature : TEMPERATURE_ARRAY;
ch : CHARACTER;
begin
loop
Update;
for i in SPACECRAFT_SECTION'FIRST .. SPACECRAFT_SECTION'LAST loop
Pressure(i).value := Sensed_Value(i);
Radiation(i).value := Sensed_Value(i);
Temperature(i).value := Sensed_Value(i);
Pressure(i).in_range := Check_Value(Pressure(i).value);
Radiation(i).in_range := Check_Value(Radiation(i).value);
Temperature(i).in_range := Check_Value(Temperature(i).value);
end loop;
Display(Pressure);
Display(Radiation);
Display(Temperature);
Console.Get(ch);
exit when ch = 'q';
end loop;
end Read_Sensors;